{% extends "../base.html"%} {% block header_title %}后台管理首页{% end %} {% block static_css %}
<link rel="stylesheet" href="{{ static_url('data/css/list.css') }}" />{% end%} {% block body %}
<div class="row">
    <div class="col-xs-1 col-sm-1 col-md-1 sidebar">
        <div class="user">
            <img src="{{static_url('images/ico-user-header.svg')}}">
            <h5>{{current_user['username']}}</h5>
            <a href="/auth/signout"><span class="glyphicon glyphicon-cog"title="用户中心"></span></a>&nbsp;
            <a href="/auth/signout">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
            </a>
        </div>
        <ul class="nav nav-sidebar">
            <li title="首页">
                <a href="/home">
                    <i class="fa fa-home"></i>
                    <span class="hidden-sm hidden-xs text">首页</span>
                </a>
            </li>
            <li title="申请">
                <a href="/apply/my">
                    <i class="fa fa-clipboard"></i>
                    <span class="hidden-sm hidden-xs text">申请</span>
                </a>
            </li>
            <li title="应用">
                <a href="/app/my">
                    <i class="fa fa-cube"></i>
                    <span class="hidden-sm hidden-xs text">应用</span>
                </a>
            </li>
            <li title="数据">
                <a href="/data">
                    <i class="fa fa-archive"></i>
                    <span class="hidden-sm hidden-xs text">数据集</span>
                </a>
            </li>
            <li title="结果集" class="active">
                <a href="/records/my">
                    <i class="fa fa-hdd-o"></i>
                    <span class="hidden-sm hidden-xs text">结果集</span>
                </a>
            </li>
        </ul>
    </div>
    <div class="col-xs-11 col-xs-offset-1 col-sm-11 col-sm-offset-1 col-md-11 col-md-offset-1 main">
        <div class="page-header">
            <h1>结果集</h1><small>这里列举的是应用关闭后保存的结果集<br>1，可以从这查看结果<br>2，可以申请导出结果<br></small>
        </div>
        <section>
            <div class="box">
                <a href="/home" class="btn btn-default">
                    <i class="fa fa-angle-double-left"></i> 首页</a>
            </div>
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-8 pd-r">

                    <div class="box">
                        <div class="box-body">
                            <form class="form-inline">
                                <div class="form-group">
                                    <input type="text" class="form-control" name="searchKeyWord" placeholder="根据数据集名搜索">
                                </div>
                                <button type="submit" class="btn btn-info">搜索</button>
                            </form>
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th class="header sortable">
                                            所属应用
                                        </th>
                                        <th class="header sortable">
                                            更新时间
                                        </th>
                                        <th class="header sortable">
                                            操作
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {% for item in records %}
                                    <tr>
                                        <td>
                                            {{item['from']}}
                                        </td>
                                        <td>{{item['updatetime']}}</td>
                                        <td>
                                            <a href="record/detail?id={{each['_id']}}" class="btn btn-default btn-xs">查看</a>
                                            <a href="record/apply" class="btn btn-default btn-xs">申请</a>
                                        </td>
                                    </tr>
                                    {%end%}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-12 col-md-4 pd-l">

                    <div class="box">
                        <div class="box-body">
                            <h2>已废止的结果集</h2>
                            <table class="table">
                                <tbody>
                                    {% for item in records %}
                                    <tr>
                                        <td>
                                            {{item['from']}}
                                        </td>
                                        <td>{{item['updatetime']}}</td>
                                        <td>
                                            <a href="data/detail?id={{each['_id']}}" class="btn btn-default btn-xs">查看</a>
                                            <a href="data/detail" class="btn btn-default btn-xs">申请</a>
                                        </td>
                                    </tr>
                                    {%end%}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
</div>
{% end %}
